from google.appengine.ext.db import djangoforms
from models import *

class CommentForm(djangoforms.ModelForm):
    class Meta:
        model = Comment
        exclude = ['mblog','source','date','archive','avatar']

class ArchiveForm(djangoforms.ModelForm):
    class Meta:
        model = Archive
        exclude = ['pub_date','update_date','view_nums']

class BlogForm(djangoforms.ModelForm):
    class Meta:
        model = Blog
        

class AuthorForm(djangoforms.ModelForm):
    class Meta:
        model = Author

